#include "stm32f4xx_hal.h"

extern uint8_t up4G_mode;
extern uint8_t upWIFI_mode;
extern uint8_t upETH_mode;

extern uint16_t mqtt_return_id;
extern uint8_t mqtt_need_publish_config;
extern uint8_t mqtt_register_step;
extern uint8_t mqtt_need_update;
extern uint8_t mqtt_need_algorithm_parameter; 
extern uint8_t mqtt_need_netlist;

extern uint8_t mqtt_update_ask[7];
extern uint8_t mqtt_update_data[512];
extern uint16_t mqtt_update_block_all;
extern uint16_t mqtt_update_block_num;
extern uint8_t update_CRC16_H;
extern uint8_t update_CRC16_L;
extern uint8_t update_OK;

extern uint8_t mqtt_algorithm_para_ask[11];
extern uint8_t mqtt_algorithm_para_data[28 * (512+20)];
extern uint16_t mqtt_algorithm_para_block_all;
extern uint16_t mqtt_algorithm_para_block_num;
extern uint8_t algorithm_para_CRC16_H;
extern uint8_t algorithm_para_CRC16_L;
extern uint8_t algorithm_para_OK;

extern uint8_t write_sd_update;
extern uint8_t reset_sd_update_file;
const char *my_strstr(const char *s1, const char *s2);
uint8_t Do_4G_MQTTRECV(void);
